﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infrastructure.Core.ErrorCode
{
    /// <summary>
    /// 参数错误相关
    /// </summary>
    public class ArgumentErrorToString : IErrorToString
    {
        #region IErrorToString 成员

        public string ErrorCodeToString(int errCode)
        {
            switch ((Argument)errCode)
            {
                case Argument.PageIndex:
                    return "PageIndex参数应该是大于０的";
                case Argument.PageCount:
                    return "PageCount参数应该是大于０的";
                case Argument.Specification:
                    return "Specification参数不能为空";
                default:
                    return "未知异常";
            }
        }

        #endregion
    }
}
